package com.zjkj.mp.service.customer.impl;


import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.sun.org.apache.regexp.internal.recompile;
import com.zjkj.mp.dao.customer.CustomerManagerDAO;
import com.zjkj.mp.service.customer.CustomerManagerService;
import com.zjkj.mp.utils.PaginatedResult;
import com.zjkj.mp.vo.customer.ContactPerson;

/**
 * 联系人创建的业务方法
 * 
 *
 * @author 宗建明
 * @history
 * <TABLE id="HistoryTable" border="1">
 * 	<TR><TD>时间</TD><TD>描述</TD><TD>作者</TD></TR>
 *	<TR><TD>2013-6-14</TD><TD>创建初始版本</TD><TD>宗建明</TD></TR>
 * </TABLE>
 */
@Service
@Transactional(rollbackFor=Exception.class)
public class CustomerManagerServiceImpl implements CustomerManagerService {
	
	@Autowired
	CustomerManagerDAO customerManagerDAO;

	public int createConactPerson(ContactPerson person)throws Exception {
		
		return customerManagerDAO.createContactPersonDAO(person);
	}

	public PaginatedResult findConactPersonList(Map map) throws Exception {
		
		return customerManagerDAO.findContactPersonList(map);
	}
	
	public List<ContactPerson> getContactPersonList(Map<String, Object> map){
		return customerManagerDAO.getContactPersonList(map);
	}

	public ContactPerson findConactPersonByParm(Map map) throws Exception {
		
		return customerManagerDAO.findConcatePersonByParm(map);
	}

	public int updateConcatePerson(ContactPerson person) throws Exception {
		
		return customerManagerDAO.updateConcatePerson(person);
	}

	public int deleteConcatePerson(Map map) throws Exception {
		
		return customerManagerDAO.deleteConcatePerson(map);
	}

	public PaginatedResult findQueryConcatePerson(Map map) throws Exception {
		
		return customerManagerDAO.findConcatePersonList(map);
	}

}

/**
 * Copyright © 2013,指尖科技 All rights reserved.
 */